package com.liyang.springcloud.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @description: 库存 dao
 * @author: liyang
 **/
@Mapper
public interface StorageDao {

    /**
     * @description: 扣减库存
     * @author: liyang
     * @date: 2024/1/10 10:54
     * @param: productId 产品ID
     * @param: count 数量
     **/
    void decrease(@Param("productId") Long productId, @Param("count") Integer count);
}
